package com.wss.module.wan.ui.wxnumber.mvp.model;

import com.wss.common.base.mvp.BaseModel;
import com.wss.common.net.Api;
import com.wss.common.net.NetworkManage;
import com.wss.module.wan.ui.wxnumber.mvp.contract.WXArticleContract;
import com.zhouyou.http.callback.CallBack;
import com.zhouyou.http.callback.SimpleCallBack;
import ohos.aafwk.ability.ILifecycle;
import ohos.aafwk.ability.Lifecycle;

/**
 * Describe：微信文章Model
 * Created by 吴天强 on 2020/8/13.
 */
public class WXArticleModel extends BaseModel implements WXArticleContract.Model {

    public WXArticleModel(Lifecycle lifecycleOwner) {
        super(lifecycleOwner);
    }

    @Override
    public void getWxArticle(int wxId, int page, CallBack<String> callBack) {
        NetworkManage.createGet().request(String.format(Api.WX_ARTICLE_LIST, wxId, page), callBack);
    }
}
